<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>菜鸟教程(runoob.com)</title>
    <style>
        body {
            background-image: url('http://static.runoob.com/images/mix/img_tree.png');
            background-repeat: no-repeat;
            background-position: right top;
            margin-right: 200px;
        }
    </style>

</head>

<body>
    <h1>Hello World!</h1>
    <p>背景图片不重复，设置 position 实例。</p>
    <p>背景图片只显示一次，并与文本分开。</p>
    <p>实例中还添加了 margin-right 属性用于让文本与图片间隔开。</p>
</body>

</html>